package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String o1="www.tedu.com";
        boolean start=o1.startsWith("www.");
        System.out.println(start);
        String o2="www.baidu.com";
        boolean end=o2.endsWith(".com");
        System.out.println(end);
    }
}